package com.next

import grails.converters.JSON
import grails.gorm.transactions.Transactional
import groovy.json.JsonOutput
import org.springframework.security.access.annotation.Secured
import static org.springframework.http.HttpStatus.*
import sun.misc.BASE64Decoder
import java.text.SimpleDateFormat

@Secured(['ROLE_ADMINISTRATOR', 'ROLE_HEAD_OFFICE_ADMINISTRATOR', 'ROLE_PROVINCE_BRANCH_OFFICE_ADMINISTRATOR', 'ROLE_PROVINCE_BRANCH_OFFICE_PRODUCT_MANAGER', 'ROLE_SECOND_BRANCH_OFFICE_PRODUCT_MANAGER',
    'ROLE_SECOND_BRANCH_OFFICE_DIRECTOR', 'ROLE_ACCOUNT_MANAGER', 'ROLE_SALES_REPRESENTATIVE', 'ROLE_BANK_OUTLETS_ADMINISTRATOR', 'ROLE_MERCHANT_ADMINISTRATOR', 'ROLE_CHANNEL_ADMINISTRATOR'])
@Transactional(readOnly = true)
class BocContactController
{

    static allowedMethods = [save: "POST", update: "PUT", delete: "DELETE", appRegister: "POST", appLogin: "POST"]

    def messageService
    def contactService
    def springSecurityService
    def fileServerService

    def assetInfo(Contact contact)
    {
        println "debug"
        respond contact
    }
}
